ATSUCaret

The ATSUCaret type is a structure containing the coordinates of the caret that corresponds to an edge offset. The function ATSUOffsetToPosition passes back two structures of type ATSUCaret to represent the caret position(s), relative to the origin of the line in the current graphics port, corresponding to a specified edge offset. If the edge offset is at a line boundary, the structure passed back in oMainCaret contains the starting and ending pen locations of the high caret, while oSecondCaret contains the low caret. If the offset is not at a line boundary, both parameters contain the same structure. This structure contains the starting and ending pen locations of the main caret.

typedef struct {
    Fixed   fX;
    Fixed   fY;
    Fixed   fDeltaX;
    Fixed   fDeltaY;
}ATSUCaret;

Field descriptions

fX
Represents the x-coordinate of the caret's starting pen position relative to the position of the origin of the line in the current graphics port in which the hit occurred.

fY
Represents the y-coordinate of the caret's starting pen position relative to the position of the origin of the line in the current graphics port in which the hit occurred.

fDeltaX
Represents the x-coordinate of the caret's ending pen position relative to the position of the origin of the line in the current graphics port in which the hit occurred. This position takes into account line rotation. You do not have to rotate it yourself.

fDeltaX
Represents the y-coordinate of the caret's ending pen position relative to the position of the origin of the line in the current graphics port in which the hit occurred. This position takes into account line rotation. You do not have to rotate it yourself.
VERSION NOTES
Available beginning with ATSUI 1.0.

© 2000 Apple Computer, Inc. – (Last Updated 25 Jan 00)